/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import org.fusesource.jansi.Ansi;
import org.fusesource.jansi.AnsiConsole;

/**
 * <p>Project: jse2302 - ColorTest
 * <p>Powered by webrx On 2023-06-12 10:20:54
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ColorTest {
    public static void main(String[] args) {
//System.out.println( Ansi.ansi().eraseScreen().fg(Ansi.Color.RED).a("Hello").fg(Ansi.Color.GREEN).a(" World").reset() );

        AnsiConsole.systemInstall();
        System.out.println("hello world!");
        System.out.println(Ansi.ansi().fg(Ansi.Color.RED).a("Hello").fg(Ansi.Color.GREEN).a(" World").reset());
        System.out.println(Ansi.ansi().render("@|red Hello|@ @|green World|@").reset());
        AnsiConsole.out.println(Ansi.ansi().fg(Ansi.Color.RED).a("Hello World").reset());
        AnsiConsole.out.println("Hello World");
        System.out.println("\u001B[32mColor \u001B[0m");
        AnsiConsole.systemUninstall();
        //System.out.println(Ansi.ansi().eraseScreen().render("@|red Hello|@ @|green World|@"));
    }
}
